package com.example.demo.common;

import java.lang.instrument.Instrumentation;

public class BeforeJvmAgent {

    public static void premain(String agentArgs, Instrumentation inst) {
        System.out.println("premain invoke!");
        inst.addTransformer(new MyClassFileTransformer());
    }

    public static void main(String[] args) {
        System.out.println("main invoke!");
    }
}
